package sgfRead;

/*
 GM' = '1'
 'FF' = '4'
 'SZ' = '19'
 'PW' = 'abel'
 'WR' = '6d'
 'PB' = 'iambad'
 'BR' = '6d'
 'DT' = '2011-01-01'
 'PC' = 'The KGS Go Server at http://www.gokgs.com/'
 'KM' = '6.50'
 'RE' = 'W+Resign'
 'RU' = 'Japanese'
 'CA' = 'UTF-8'
 'ST' = '2'
 'AP' = 'CGoban:3'
 'TM' = '60'
 'OT' = '25/240 Canadian'
 */

/*
 Current support : 	AP, CA, FF, GM, ST, SZ
 */
public class GameInfos {
	// AP, CA, FF, GM, ST, SZ
	String ap = ""; // name version number of app
	String ca = ""; // the used charset
	String pw = ""; // name of white
	String wr = "";// rank of white
	String br = "";// rank of black
	String pb = ""; // name of Black

	int ff; // used file format
	int gm; // type of game 1: GO; 3: chess.
	int st;// Defines how variations should be shown
	int sz; // board size

	public String AP() {
		return ap;
	}

	public String CA() {
		return ca;
	}

	public int FF() {
		return ff;
	}

	public int GM() {
		return gm;
	}

	public int ST() {
		return st;
	}

	public int SZ() {
		return sz;
	}

	public String print() {
		String ret = "";
		ret += " _AP: " + this.ap;
		ret += " _ca: " + this.ca;
		ret += " _ff: " + this.ff;
		ret += " _gm: " + this.gm;
		ret += " _st: " + this.st;
		ret += " _sz: " + this.sz;
		ret += " _br: " + this.br;
		ret += " _wr: " + this.wr;
		ret += " _pw: " + this.pw;
		ret += " _pb: " + this.pb;
		System.out.println(ret);
		return ret;
	}
}
